#from ronglian_sms_sdk import SmsSDK
from libs.ronglian_sms_sdk import SmsSDK
accId = '8aaf07087e770fdb017e780b8fc1003d'
accToken = 'fe208afac4a7469caa09ffc0e207fb25'
appId = '8aaf07087e770fdb017e780b90dc0044'

def send_message(tid, mobile, datas):
    # 免费开发测试使用模板id为1,
    sdk = SmsSDK(accId, accToken, appId)
    #tid = '1'   #容联云通讯创建的模板
    #mobile = '手机号1,手机号2'
    #datas = ('4365', '2')  #变量1 ->验证码，变量2 -> 有效分钟数
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)

#send_message()

